// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 

package com.yoyo.series.entities;

import com.google.myjson.stream.JsonReader;
import com.google.myjson.stream.JsonWriter;
import java.io.IOException;

// Referenced classes of package com.stayit.series.entities:
//            Persistent

public class ImageEntity extends Persistent
{

    public ImageEntity()
    {
    }

    public ImageEntity(int i)
    {
        groupId = i;
    }

    public ImageEntity(int i, long l)
    {
        groupId = i;
        categroyId = l;
    }

    public ImageEntity(int i, String s)
    {
        groupId = i;
        description = s;
    }

    public ImageEntity getConstrainObject()
    {
        ImageEntity imageentity = new ImageEntity();
        imageentity.imageUrl = imageUrl;
        return imageentity;
    }

    public volatile Persistent getConstrainObject()
    {
        return getConstrainObject();
    }

    public void readFromJson(JsonReader jsonreader)
        throws IOException
    {
        jsonreader.beginObject();
        while(jsonreader.hasNext()) 
        {
            String s = jsonreader.nextName();
            if(s.equalsIgnoreCase("groupId"))
                groupId = jsonreader.nextInt();
            else
            if(s.equalsIgnoreCase("categroyId"))
                categroyId = jsonreader.nextLong();
            else
            if(s.equalsIgnoreCase("description"))
                description = jsonreader.nextString();
            else
            if(s.equalsIgnoreCase("imageUrl"))
                imageUrl = jsonreader.nextString();
            else
            if(s.equalsIgnoreCase("imageId"))
                imageId = jsonreader.nextLong();
            else
            if(s.equalsIgnoreCase("timestamp"))
                timestamp = jsonreader.nextLong();
            else
                jsonreader.skipValue();
        }
        jsonreader.endObject();
    }

    public String toString()
    {
        return (new StringBuilder()).append("type=").append(groupId).append("mModuleName=").append(description).append("mRemoteUrl=").append(imageUrl).append("mTimeStamp=").append(timestamp).toString();
    }

    public void writeToJson(JsonWriter jsonwriter)
    {
    }

    public static final String CATEGORYID_STRING = "categroyId";
    public static final String DESCRIPTION_STRING = "description";
    public static final String GROUPID_STRING = "groupId";
    public static final String IMAGEID_STRING = "imageId";
    public static final String IMAGEURL_STRING = "imageUrl";
    public static final String TIMESTAMP_STRING = "timestamp";
    private static final long serialVersionUID = 1L;
    public long categroyId;
    public String description;
    public int groupId;
    public long imageId;
    public String imageUrl;
    public long timestamp;
}
